package cn.craftyun.yunexam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class Exam {
    @NotNull
    @TableId(type = IdType.AUTO)
    private Long id;
    @NotNull
    private Long paperId;
    @NotNull
    private Date startTime;
    @NotNull
    private Integer duration;
}
